@import './reset.less';
@import './themes/index.less';

/* 全局样式 */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-size: 14px;
  transition:
    background-color @transition-time,
    color @transition-time;
  overflow-x: hidden;
}

/* 页面容器 */
.app-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 主内容区域 */
.main-content {
  flex: 1;
  transition: all @transition-time;
}

.flex-wrap {
  padding: 20px;
  font-size: 16px;
}
.fontBolder {
  font-weight: bold;
}
.mg20 {
  margin: 20px 0;
}
.flexBetweenCenter {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.flexCenter {
  display: flex;
  justify-content: center;
  align-items: center;
}
.flexAlignCenter {
  display: flex;
  align-items: center;
}

/* 响应式适配 */
/* 响应式适配 */
@media screen and (max-width: 768px) {
  .app-main {
    padding: 10px;
  }

  .right-menu {
    .user-name {
      display: none;
    }
  }
}

@media screen and (max-width: @mobile-width) {
  .main-content {
    padding: 10px;
  }
}

/* 路由过渡动画 */
.fade-enter-active,
.fade-leave-active {
  transition: opacity @transition-time;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

.slide-fade-enter-active,
.slide-fade-leave-active {
  transition: all @transition-time ease;
}

.slide-fade-enter-from {
  transform: translateX(20px);
  opacity: 0;
}

.slide-fade-leave-to {
  transform: translateX(-20px);
  opacity: 0;
}

/* 常用工具类 */
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.text-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

::-webkit-scrollbar-track {
  background: transparent;
}
